Discover outputdebugstring debugview, include the articles, news, trends, analysis and practical advice about outputdebugstring debugview on alibabacloud.com
Yesterday, I found that there was a problem with the server communication concurrency, so I hope to add the write debugging information output at the communication layer. At that time, I first thought of codesite, which is commonly used. However,
Document directory
Content directory
Applicable scenarios of outputdebugstring:At the same time, multiple application processes (producers) can send debugging information. Only one debugging process (consumer, egdebugview, and vs2005) can be
When debugging some programs, print them with outputdebugstring, and print them with debugview output, for example, a Windows service program. However, debugview outputs printed information of any Windows software program, such as thunder and
A strong Win32 developer may
Outputdebugstring ()API functions are more familiar than debugger, which enables your program to communicate with the debugger. It is easier than creating a log file and can be used by all "real" debuggers. The mechanism
I. How to Implement
There are many ways to print debugging information. The most common method is to use standard output devices (such as printf and cout). You can also use OutPutDebugString to output and DebugView to view the information, you can
MFC principle Third speaking. RTTI Runtime type identification what is Rtti
RTTI. Identification of the type at run time. The run-time type information program. Ability to use a base class (parent class) pointer or reference to examine these
Output debug information to the console or file
We often encounter this situation. The planners ran to say that the program had gone wrong, and then gave a great description of the program without making the problem clear. If the program running
Debugging art-Summary of debugging skills
(This article is pasted from the prepared wiki, and the format is slightly messy without affecting READING)
Q + indicates the question, and a + indicates the answer. Organize in this way. Unless otherwise
Use trace statements
31. The outputdebugstring API function, the MFC afxoutputdebugstring macro, And the MFC afxdumpstack function are compiled in all versions, but all other trace statements can be compiled only when the _ debug symbol is defined.
3
Add the MFC project to the console for debugging information output
In the MFC program, you can use the trace macro or outputdebugstring () function to output debugging information. The trace macro can output debugging information like the output
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.